// <copyright file="ProductDTO.cs" company="EnterpriseApi">
// Copyright (c) EnterpriseApi. All rights reserved.
// </copyright>

namespace EnterpriseApi.DTOs;

/// <summary>
/// 产品数据传输对象，用于产品数据的展示和传递
/// </summary>
public class ProductDTO
{
    /// <summary>
    /// 产品唯一标识符
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// 产品名称
    /// </summary>
    public required string Name { get; set; }

    /// <summary>
    /// 产品描述
    /// </summary>
    public string? Description { get; set; }

    /// <summary>
    /// 产品价格
    /// </summary>
    public decimal Price { get; set; }

    /// <summary>
    /// 产品库存数量
    /// </summary>
    public int StockQuantity { get; set; }

    /// <summary>
    /// 产品图片URL
    /// </summary>
    public string? ImageUrl { get; set; }

    /// <summary>
    /// 产品创建时间
    /// </summary>
    public DateTime CreatedAt { get; set; }

    /// <summary>
    /// 产品最后更新时间
    /// </summary>
    public DateTime? UpdatedAt { get; set; }

    /// <summary>
    /// 产品是否可用
    /// </summary>
    public bool IsAvailable { get; set; }

    /// <summary>
    /// 产品类别名称
    /// </summary>
    public string CategoryName { get; set; } = null!;
}